package com.lizi.apidoc.model;

/**
* 请求的基本信息
* @return
* @author kingman zhangjw@3vjia.com
* @since 2020/5/7
*/
public class RequestBaseInfo {

    /**
     * url
     */
    private String url;
    /**
     * path
     */
    private String shortUrl;
    /**
     * methodType
     */
    private String methodType;
    /**
     * mediaType
     */
    private String mediaType;
    /**
     * method deprecated
     */
    private boolean deprecated;

    public static RequestBaseInfo builder() {
        return new RequestBaseInfo();
    }

    public String getUrl() {
        return url;
    }

    public RequestBaseInfo setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getShortUrl() {
        return shortUrl;
    }

    public RequestBaseInfo setShortUrl(String shortUrl) {
        this.shortUrl = shortUrl;
        return this;
    }

    public String getMethodType() {
        return methodType;
    }

    public RequestBaseInfo setMethodType(String methodType) {
        this.methodType = methodType;
        return this;
    }

    public String getMediaType() {
        return mediaType;
    }

    public RequestBaseInfo setMediaType(String mediaType) {
        this.mediaType = mediaType;
        return this;
    }

    public boolean isDeprecated() {
        return deprecated;
    }

    public RequestBaseInfo setDeprecated(boolean deprecated) {
        this.deprecated = deprecated;
        return this;
    }
}
